import React, { Component } from 'react'
import './index.scss'
export default class TableTh extends Component {
    render() {
        const {thData} = this.props;
        console.log("1"+thData)
        return (
           <thead>
               <tr>
                   {
                       thData.map((item,index)=>{
                           return(
                               <th key={index}>{item}</th>
                           )
                       })
                   }
               </tr>
           </thead>
        )
    }
}
